$OpenBSD: patch-src_3rdparty_chromium_third_party_libyuv_libyuv_gyp,v 1.1.1.1 2016/12/25 14:13:19 zhuk Exp $
--- src/3rdparty/chromium/third_party/libyuv/libyuv.gyp.orig.port	Thu May 26 15:58:54 2016
+++ src/3rdparty/chromium/third_party/libyuv/libyuv.gyp	Sun Aug  7 08:45:45 2016
@@ -115,12 +115,16 @@
               ],
             }],
             [ 'use_system_libjpeg == 1', {
+              'include_dirs': [ '/usr/local/include' ],
               'link_settings': {
                 'libraries': [
                   '-ljpeg',
                 ],
               }
             }],
+            ['target_arch == "ia32"', {
+              'cflags': [ '-fomit-frame-pointer' ],
+            }],
           ],
         }],
         ['build_neon != 0', {
@@ -170,6 +174,12 @@
           }],
         ], #conditions
       },
+      'cflags': [
+        '-msse4.1',
+        '-mavx',
+        '-mavx2',
+        '-march=haswell',
+      ],
       'sources': [
         '<@(libyuv_sources)',
       ],
